package com.lp.bean;

import java.util.Date;

import org.codehaus.jackson.map.annotate.JsonSerialize;

import com.lp.annotation.Code;
import com.lp.common.Constants;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @类:IotSensorInfo
 * @作者:chenrj
 */

@Data
@NoArgsConstructor
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
@EqualsAndHashCode(callSuper = false)
public class IotSensorInfo extends BaseBean {

  /** name */
  private String name;

  /** 传感器单位 */
  @Code(type = Constants.CodeType.DICTIONARY_VALUE)
  private Integer measure_unit_type;

  /** 类型：连续型、开关性等 */
  @Code
  private Integer iot_sensor_type;

  /** 种类：温度、IO、开关 */
  private Integer iot_sensor_category;

  /** node_id */
  private Integer node_id;

  /** sensor_device_id */
  private String sensor_device_id;
  private String dev;

  /** port_id */
  private Integer port_id;
  private Integer po;

  /** sdata */
  private Float sdata;
  private Float da;

  /** seq */
  private Integer seq;

  /** 传感器状态 */
  @Code
  private Integer iot_sensor_status;

  /** request_sdata */
  private Float request_sdata;

  /** 精度 */
  private Integer sdata_degree;

  /** 直接公式处理，公式可在数据字典选择 */
  private String formula_up;

  private String formula_down;

  /** register_time */
  private Date register_time;

  /** aid */
  private Integer aid;

  /** atime */
  private Date atime;

  /** mid */
  private Integer mid;

  /** mtime */
  private Date mtime;

  private String str_sdata;

  /** 数据类型 0 common 1， 配置 */
  private Integer data_type = 0;

  private String param_names;

  /**
   * 配置参数类型
   */
  private Integer param_type;
  /**
   * 配置参数单位
   */
  private String param_config;

  private String infos;
  /**
   * 储存策略
   */
  @Code
  private Integer store_strage;

}